docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
authorDmitry Shachnev <mitya57@debian.org>
Sun, 18 Dec 2016 10:11:46 +0000 (13:11 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jan 2017 19:39:36 +0000 (19:39 +0000)
commit47080b483c4d964f4f4595d43e730f4dc50c1d20
tree0a3b61d5ecc0636764f94c78f8c497f61790a6e1
parente9f6f3dbf405f146b3cc8b60c89f9a2b262a19eb
docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

In docutils 0.13, the return type of get_column_widths method of the
Table directive has changed [1], which breaks our flat-table directive
and leads to a TypeError when trying to build the docs [2].

This patch adds support for the new return type, while keeping support
for older docutils versions too.

[1] https://sourceforge.net/p/docutils/patches/120/
[2] https://sourceforge.net/p/docutils/bugs/303/

Signed-off-by: Dmitry Shachnev <mitya57@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name docs-sphinx-extensions-make-rstFlatTable-work-with-d.patch
Documentation/sphinx/rstFlatTable.py